
Share of people who respond they are “very happy” or “rather happy” to the question “Taking all things together, would you say you are … ?”
The following chart demonstrates that it is possible to approximate
the functionality of our World in Data grapher for multicountry
selection using R, specifically with the crosstalk package
and a small amount of custom JavaScript. For more information on how to
achieve this, see this
Stack Overflow question.
Note that this is not a required task, but rather a showcase of what can be achieved. The code for this will be shared when we provide the solutions for the exercise.
Data source: World Happiness Report
https://ourworldindata.org/grapher/share-of-people-who-say-they-are-happy | CC BY